import { Orignizers } from '@/pages/Exhibition/Events/index.d.ts';
import request from '@/utils/request';

/**
 * 新增展览接口
 * @param data
 */
export function insertExhibition(data: Orignizers): Promise<any> {
  return request('/sealCuttingApi/exhibition/insertExhibition', {
    method: 'POST',
    data,
  });
}

/**
 * 新增展览接口
 * @param data
 */
export function updateExhibition(data: Orignizers): Promise<any> {
  return request('/sealCuttingApi/exhibition/updateExhibition', {
    method: 'POST',
    data,
  });
}

/**
 * 删除展览接口
 * @param data
 */
export function delExhibition(params: { id?: string }): Promise<any> {
  return request('/sealCuttingApi/exhibition/delExhibition', {
    method: 'POST',
    params,
  });
}
